Skip to content

Updated to Android SDK 35 Compatibility and Fixed Sensor Initialization - #177

Open
HasanKoc33 wants to merge 1 commit into
SimformSolutionsPvtLtd:masterfrom
HasanKoc33:fix/android-35-compatibility
Open

Updated to Android SDK 35 Compatibility and Fixed Sensor Initialization#177
HasanKoc33 wants to merge 1 commit into
SimformSolutionsPvtLtd:masterfrom
HasanKoc33:fix/android-35-compatibility

Conversation

@HasanKoc33

Copy link
Copy Markdown

Summary

This PR addresses two key issues in the project:

  1. Android SDK 35 Compatibility:

    • Updated compileSdkVersion and related Gradle configurations to support Android 35.
    • Bumped the Android Gradle Plugin (AGP) version to 8.1.0 as required.
  2. Fixed Sensor Initialization Issue:

    • Resolved an issue in GyroscopeStreamHandler.kt where the sensor variable was causing a build failure. Updated its declaration to:
      private val sensor: Sensor? = sensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE)

Testing

  • Verified compatibility with Android SDK 35.
  • Tested gyroscope functionality to ensure the sensor data is received correctly.

Let me know if further adjustments are needed. Thank you!

@Sahil-Simform

Copy link
Copy Markdown
Contributor

Hi @HasanKoc33 ,
Thank you so much for your contribution! We appreciate your effort.
Can you please provide information as to why we need to change compile SDk to 35?

@Sahil-Simform Sahil-Simform added the more-info-required More information has been requested label Jan 9, 2025
@HasanKoc33

Copy link
Copy Markdown
Author

Upon upgrading to the latest version of Flutter, I noticed that the target SDK was updated to 35, which caused compatibility issues with the plugin. This observation led me to identify the target SDK update as the root cause of the error.

@lopesfontana

Copy link
Copy Markdown

@Sahil-Simform could you please upgrade the compilesdk due incompatibility to new android releases?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

more-info-required More information has been requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants